<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="rename" default="rename">
  <!--
  Examples:

    ant -f release.xml -Dcurrent=2.17 -Drelease=2.18
  -->
  <tstamp/>
  <property name="current" value="2.25"/>
  <property name="release" value="2.26"/>
  
  <target name="test">
     <echo>current: ${current}</echo>
     <echo>release: ${release}</echo>
  </target>
  
  <target name="rename"
          description="Update version references for a new branch">
    <replace dir="..">
      <include name="**/pom.xml"/>
      <include name="src/release/bin.xml"/>
      <include name="src/release/installer/win/GeoServerEXE.nsi"/>
      <include name="src/release/installer/win/wrapper.conf"/>
      <replacefilter token="${current}-SNAPSHOT" value="${release}-SNAPSHOT"/>
    </replace>
    <replace dir="../doc/en">
      <include name="build.xml"/>
      <include name="user/source/conf.py"/>
      <include name="developer/source/conf.py"/>
      <include name="docguide/source/conf.py"/>
      <replacefilter token="${current}" value="${release}"/>
    </replace>
    <replace dir="..">
      <include name="src/pom.xml"/>
      <replacefilter token="31-SNAPSHOT" value="32-SNAPSHOT"/>
      <replacefilter token="1.25-SNAPSHOT" value="1.26-SNAPSHOT"/>
    </replace>
  </target>

</project>

